[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
".pdf", "ba.pdf") end ) \stopluacode \stoptext Then you have calling file (with file:///): \setupinteraction[state=start, focus=standard] \def\MyURL#1{\goto{\tt#1}[url(#1)]} \starttext Link to other document: \MyURL{file:///path/ba.pdf\letterhash n_73

Re: [NTG-context] Found a weird URL that breaks things

2021-12-19 Thread Bruce Horrocks via ntg-context
Thanks Wolfgang. I had tried \# which I normally use to escape a hash but it didn't work. I was unaware of \letterhash. > On 19 Dec 2021, at 17:37, Wolfgang Schuster > wrote: > > Bruce Horrocks via ntg-context schrieb am 19.12.2021 um 18:12: >> Hi, >> >> T

Re: [NTG-context] Found a weird URL that breaks things

2021-12-19 Thread Wolfgang Schuster via ntg-context
)] \stoptext under "mtx-context | current version: 2021.12.10 11:41" \useURL fails as well so I assume it's in the URL parser. The hash (#) is a special character in TeX and you have to either replace it with something safe like \letterhash or in case of \useurl you can put al

[NTG-context] named § symbol

2021-06-17 Thread Jan U. Hasecke
Hi all, I use this for legal documents: \setuplabeltext[section=§~] But I wonder if there is a named command like \letterhash for this. TIA juh ___ If your question is of interest to others as well, please add

Re: [NTG-context] named § symbol

2021-06-17 Thread Hans Hagen
On 6/17/2021 1:28 PM, Jan U. Hasecke wrote: Hi all, I use this for legal documents: \setuplabeltext[section=§~] But I wonder if there is a named command like \letterhash for this. \sectionmark \paragraphmark

Re: [NTG-context] issue with link (MkIV & LMTX)

2021-06-05 Thread Hans Hagen
\startTEXpage[offset=1ex] \startitemize \item \MyURL{a.b\\/c.d\letterhash e} \stopitemize \stopTEXpage \stoptext I’m using current latest from 2021.06.04 17:28. LuaTeX generates the link rectangle right. LuaMetaTeX generates a wrong link rectangle. In the attached image, you can see

[NTG-context] issue with link (MkIV & LMTX)

2021-06-05 Thread Pablo Rodriguez
{a.b\\/c.d\letterhash e} \stopitemize \stopTEXpage \stoptext I’m using current latest from 2021.06.04 17:28. LuaTeX generates the link rectangle right. LuaMetaTeX generates a wrong link rectangle. In the attached image, you can see the output I get (MkIV and LMTX). Could anyone confirm

[NTG-context] wrong link rectagle in LMTX

2021-05-28 Thread Pablo Rodriguez
\letterhash e}} \stopitemize \stoptext I get an unindented link rectangle with LMTX (2021.05.27 14:15). Using --luatex, the link rectangle is perfectly fine. Could anyone confirm the issue? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] Escaping reserved/problematic characters

2021-03-11 Thread Wolfgang Schuster
a ConTeXt perspective in the following list (sorry about the formatting!):     '{': "\\{" \letterleftbrace     '}': "\\}" \letterrightbrace     '_': "\\_" No escape needed.     '%': "\\%" \letterpercent     '#': "\\#&quo

[NTG-context] links in LMTX

2020-12-19 Thread Pablo Rodriguez
\letterhash e}} \stopitemize \stoptext Link rectangles are right with MkIV, but they don’t honour left margin with LMTX. Could anyone confirm this? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your

Re: [NTG-context] issue with link and margin in LMTX

2020-12-12 Thread Otared Kavian
; \setuppapersize[A9] > \setupinteraction[state=start] > \enabledirectives[references.border] > \unexpanded\def\MyURL#1% >{\bgroup\goto{{\tt\hyphenatedurl{#1}}}[url(#1)]\egroup} > \starttext > \startitemize > \dorecurse{2}{\item \MyURL{a.b\\/c.d\letterhash e}} &g

[NTG-context] issue with link and margin in LMTX

2020-12-11 Thread Pablo Rodriguez
\letterhash e}} \stopitemize \stoptext I’m afraid that the link has problems with margin in MkXL (MkIV doesn’t have any problems with it). Could anyone confirm the issue? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] linking to an external PDF file

2018-10-08 Thread Pablo Rodriguez
turncode=\scratchcounter\else > \def\suffix{.tiff} > \edef\returncode{\URIReturnCode{\theurl\suffix}} > \fi > \ifnum\returncode=\scratchcounter\else > \def\suffix{.tif} > \edef\returncode{\URIReturnCode{\theurl\suffix}} > \fi > } > > % Give up if returncode other

Re: [NTG-context] linking to an external PDF file

2018-10-08 Thread Hans van der Meer
ive up if returncode other then 200. \ifnum\returncode=200\relax % Page number might be added. \doifelse{\xmlatt{#1}{page}}{\empty} {\let\thep\empty} {\edef\thep{\letterhash page=\xmla

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Hans Hagen
  end     end end \stopluacode \def\mpdefineoutlines#1#2{\ctxlua{     local char = "\luaescapestring{#1}"     local outlines = outlinepaths("#2")     local len = \letterhash outlines     tex.print("path " .. char .. "[];")     tex.print(char .. &qu

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Alan Braslau
      local glyph = shapeglyphs[c.index] > >>>         if glyph and (glyph.segments or glyph.sequence) then > >>>             local units  = shapedata.units or 1000 > >>>             local factor = 100/units > >>>             local paths  = fonts.me

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Hans Hagen
#1}"     local outlines = outlinepaths("#2")     local len = \letterhash outlines     tex.print("path " .. char .. "[];")     tex.print(char .. "n := " .. len .. ";")     for i, path in ipairs(outlines) do         tex.print(char .. "["

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Floris van Manen
;> local paths = fonts.metapost.paths(glyph,factor) >> return paths >> end >> end >> end >> \stopluacode >> \def\mpdefineoutlines#1#2{\ctxlua{ >> local char = "\luaescapestring{#1}" >> local outlin

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Hans Hagen
{ local char = "\luaescapestring{#1}" local outlines = outlinepaths("#2") local len = \letterhash outlines tex.print("path " .. char .. "[];") tex.print(char .. "n := " .. len .. ";") for i, path in ipairs(outline

[NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Henri Menke
l outlines = outlinepaths("#2") local len = \letterhash outlines tex.print("path " .. char .. "[];") tex.print(char .. "n := " .. len .. ";") for i, path in ipairs(outlines) do tex.print(char .. "[" .. i .. "] := "

Re: [NTG-context] Characters allowed in macro names

2018-04-22 Thread N. Raghavendra
At 2018-04-22T20:08:34+02:00, Wolfgang Schuster wrote: > You can use the following example as test. > > begin example > \starttext > > \def\hello-1{Hello \letterhash 1} > > \def\hello-2{Hello \letterhash 2} > > \hello-1 > > \hello-2 > > \sto

Re: [NTG-context] Characters allowed in macro names

2018-04-22 Thread Wolfgang Schuster
example as test. begin example \starttext \def\hello-1{Hello \letterhash 1} \def\hello-2{Hello \letterhash 2} \hello-1 \hello-2 \stoptext end example Here I create a command named \hello which has to be followed by “-1" and "-2". When you run TeX on this example you

Re: [NTG-context] problem with character entities in XML processing

2018-04-19 Thread Hans van der Meer
10:53 AM, Hans van der Meer wrote: >> The following use of character entities aborts in ConTeXt. That is of >> course because the # is seen as a parameter. Changing this to &\#xxx; or >> &\letterhash xxx; typesets as is, but that is not the intention, >> because a

Re: [NTG-context] goto reference

2018-04-19 Thread Taco Hoekwater
t; \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank >>> Testing directly from \ConTeXt:\blank >>> \setupinteraction[state=start,color=blue,style=italic] >>> \goto{Beginners manual called with http:// opens in browser as >>> expected}[url(

Re: [NTG-context] goto reference

2018-04-19 Thread Hans van der Meer
gt; >> >> \starttext >> \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank >> Testing directly from \ConTeXt:\blank >> \setupinteraction[state=start,color=blue,style=italic] >> \goto{Beginners manual called with http:// opens in browser as

[NTG-context] problem with character entities in XML processing

2018-04-19 Thread Hans van der Meer
The following use of character entities aborts in ConTeXt. That is of course because the # is seen as a parameter. Changing this to &\#xxx; or &\letterhash xxx; typesets  as is, but that is not the intention, because an ampersand should appear. So, how do I proceed here?Minimal exampl

Re: [NTG-context] goto reference

2018-04-19 Thread Otared Kavian
t; Testing directly from \ConTeXt:\blank > \setupinteraction[state=start,color=blue,style=italic] > \goto{Beginners manual called with http:// opens in browser as > expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash > <http://pragma-ade.com/general/manual

Re: [NTG-context] goto reference

2018-04-19 Thread John Grasty
lue,style=italic] > \goto{Beginners manual called with http:// opens in browser as > expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash > page=50)]\blank > file test.pdf sits in the current directory.\blank > \goto{click test.pdf page10 with ftp:///Users/...

Re: [NTG-context] goto reference

2018-04-19 Thread Hans van der Meer
directly from \ConTeXt:\blank \setupinteraction[state=start,color=blue,style=italic] \goto{Beginners manual called with http:// opens in browser as expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash page=50)]\blank file test.pdf sits in the current directory.\blank \goto

Re: [NTG-context] goto reference

2018-04-18 Thread Otared Kavian
ote: >> >> For documents on the web you can add #page= to the url. >> >> \setupinteraction[state=start] >> >> \starttext >> \goto{Beginners >> manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash >> <http://pragma-

Re: [NTG-context] goto reference

2018-04-18 Thread Wolfgang Schuster
action[state=start] \starttext \goto{Beginners manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash page=58)] \stoptext Wolfgang Hans van der Meer <mailto:havdm...@ziggo.nl> 18. April 2018 um 23:04 Thanks. But this seems not to work on my Macintosh. Not in Preview, n

Re: [NTG-context] goto reference

2018-04-18 Thread Hans van der Meer
ners > manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash > <http://pragma-ade.com/general/manuals/mp-cb-en.pdf/letterhash> page=58)] > \stoptext > > Wolfgang >> Hans van der Meer <mailto:havdm...@ziggo.nl> 18. April 2018 um 21:12 >

Re: [NTG-context] goto reference

2018-04-18 Thread Wolfgang Schuster
For documents on the web you can add #page= to the url. \setupinteraction[state=start] \starttext \goto{Beginners manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash page=58)] \stoptext Wolfgang Hans van der Meer <mailto:havdm...@ziggo.nl> 18. April 2018 um 2

Re: [NTG-context] issue with css selector in lpath

2017-12-14 Thread Hans Hagen
, as mentioned already # is kind of special in tex, so you need to escape it: \xmlsetsetup{#1}{{\letterhash header}}{xml:header:id} Many thanks for your reply, Hans. I got it now. xml-mkiv.pdf contains not escaped samples of css identifier selectors, which contributes to the confusion. Since the selector

Re: [NTG-context] issue with css selector in lpath

2017-12-14 Thread Pablo Rodriguez
lready # is kind of special in > tex, so you need to escape it: > > \xmlsetsetup{#1}{{\letterhash header}}{xml:header:id} Many thanks for your reply, Hans. I got it now. xml-mkiv.pdf contains not escaped samples of css identifier selectors, which contributes to the confusion. Since the se

Re: [NTG-context] issue with css selector in lpath

2017-12-14 Thread Hans Hagen
o you need to escape it: \xmlsetsetup{#1}{{\letterhash header}}{xml:header:id} The same is true for % : \letterpercent. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061

Re: [NTG-context] (My) problem with percent sign in URLs -- about Wiki

2017-08-15 Thread Alan Braslau
Are there some other predefined "\letterxxx" commands? > \letteropenbrace > \letterclosebrace > \letterampersand > \letterless > \lettermore > \letterhash > \letterdoublequote > \lettersinglequote > \letterdollar > \letterpercent > \letterhat > \

Re: [NTG-context] (My) problem with percent sign in URLs -- about Wiki

2017-08-15 Thread Wolfgang Schuster
ce-to-print/?hpw\letterpercent20hpw} # # Please update the garden (another command is \letterhash), when the # reply solved your problem. Are there some other predefined "\letterxxx" commands? \letteropenbrace \letterclosebrace \letterampersand \letterless \lettermore \letterhash \letterdoub

Re: [NTG-context] (My) problem with percent sign in URLs -- about Wiki

2017-08-15 Thread Tomas Hala
er command is \letterhash), when the # reply solved your problem. Are there some other predefined "\letterxxx" commands? Is (and how) possible to change the name of page from Url to URL? Cheers, Tomas # Many thanks (for the upd

Re: [NTG-context] (My) problem with percent sign in URLs

2017-08-15 Thread Tomas Hala
\bgroup\tt\goto{\hyphenatedurl{#1}}[url(#1)]\egroup} # \starttext # \hsize\zeropoint # # \mypersonalurl{http://bits.blogs.nytimes.com/2010/03/05/a-former-book-designer-says-good-riddance-to-print/?hpw\letterpercent20hpw} # \stoptext # # Please update the garden (another comma

Re: [NTG-context] (My) problem with percent sign in URLs

2017-08-14 Thread Pablo Rodriguez
\bgroup\tt\goto{\hyphenatedurl{#1}}[url(#1)]\egroup} \starttext \hsize\zeropoint \mypersonalurl{http://bits.blogs.nytimes.com/2010/03/05/a-former-book-designer-says-good-riddance-to-print/?hpw\letterpercent20hpw} \stoptext Please update the garden (another command is \letterh

Re: [NTG-context] special characters in URLs

2016-07-18 Thread Alan Bowen
). >> >> e.g., >> >> >> http://www.mhs.ox.ac.uk/collections/imu-search-page/record-details/?TitInventoryNo=40829=field=on=2020 >> >> and >> >> http://www.davidaking.org/instrument-catalogue-TOC.htm#part6 >> > > you can use \letterhash

Re: [NTG-context] special characters in URLs

2016-07-17 Thread Hans Hagen
ogue-TOC.htm#part6 you can use \letterhash How does one do this? The best I have done thus far is to get broken links that display as they should. i'll add a last minute cleanup for \#, \%, \& and spac

Re: [NTG-context] Illegal parameter number in definition

2015-07-23 Thread Pablo Rodriguez
with the technical support from GMX and the banned replies.) All you have to do is to escape the hash character, one way or another: \xmlsetsetup{#1} {hi[@rendition='\letterhash in']} {xml:rend:in} \xmlsetsetup{#1} {hi[contains(@rendition,'\letterhash

Re: [NTG-context] Hash (Pound) Sign (#) in `\biburl'

2015-06-01 Thread Alexander Shukaev
to overcome this problem? Thanks a lot. Hi Alexander, this may work: \biburl{http://computing.llnl.gov/tutorials/mpi_performance/\letterhash Protocols} If it doesn’t work, please send a minimal sample. I have never used bibliographies in ConTeXt. Pablo -- http://www.ousia.tk

Re: [NTG-context] Hash (Pound) Sign (#) in `\biburl'

2015-05-31 Thread Pablo Rodriguez
{http://computing.llnl.gov/tutorials/mpi_performance/\letterhash Protocols} If it doesn’t work, please send a minimal sample. I have never used bibliographies in ConTeXt. Pablo -- http://www.ousia.tk ___ If your

Re: [NTG-context] A macro which gives a random name

2015-04-19 Thread Otared Kavian
]\RandomChoice{% \setevalue{Chosen#1}{\ctxlua{% local listsize = \letterhash #2 ; local LName = #2 ; tex.print(LName[math.random(1,listsize)])}}} \dorecurse{10}{\RandomChoice{Function}{ListOfNames}% Give an example of a function $\ChosenFunction

Re: [NTG-context] A macro which gives a random name

2015-04-19 Thread Hans Hagen
from which something is chosen \define[2]\RandomChoice{% \setevalue{Chosen#1}{\ctxlua{% local listsize = \letterhash #2 ; local LName = #2 ; tex.print(LName[math.random(1,listsize)])}}} \dorecurse{10}{\RandomChoice{Function}{ListOfNames}% Give

Re: [NTG-context] A macro which gives a random name

2015-04-18 Thread Wolfgang Schuster
, and such that $\RandomFunctionName(0) = 1$.\par \hairline\par} \stoptext begin random-names.tex You can access the size of your Name table with #Name but have to replace # with \letterhash when you use it in a TeX command because # is already taken for the TeX arguments. \starttext \startluacode

Re: [NTG-context] A macro which gives a random name

2015-04-18 Thread Otared Kavian
$\RandomFunctionName : {\Bbb R} \longrightarrow {\Bbb R}$ which has a derivative only at the origin, and such that $\RandomFunctionName(0) = 1$.\par \hairline\par} \stoptext begin random-names.tex You can access the size of your Name table with #Name but have to replace # with \letterhash

Re: [NTG-context] A macro which gives a random name

2015-04-18 Thread Hans Hagen
listsize = \letterhash #2 ; local LName = #2 ; tex.print(LName[math.random(1,listsize)])}}} \dorecurse{10}{\RandomChoice{Function}{ListOfNames}% Give an example of a function $\ChosenFunction : {\Bbb R} \longrightarrow {\Bbb R}$ which has a derivative only at the origin

Re: [NTG-context] A macro which gives a random name

2015-04-18 Thread Otared Kavian
two arguments: % the first argument is the control sequence name attached to Chosen, % the second argument is the name of the list from which something is chosen \define[2]\RandomChoice{% \setevalue{Chosen#1}{\ctxlua{% local listsize = \letterhash #2 ; local

Re: [NTG-context] # in file name

2015-03-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
catcodes but another solution is: foo\\letterhash bar great, it works, thank you! Lukas How to code the file name? -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420

Re: [NTG-context] # in file name

2015-03-20 Thread Hans Hagen
}) context.pagefigure({PrehlSit\#A2.pdf}, {scale=500}) context.pagefigure({PrehlSit##A2.pdf}, {scale=500}) \stopluacode But nothing works. one can flush with verbatim catcodes but another solution is: foo\\letterhash bar How to code the file name? (BTW: I'm aware that # in file names

Re: [NTG-context] handling HTML notes in ConTeXt

2014-12-28 Thread Hans Hagen
xml:collectnotes \ctxlua{userdata.notes['\letterhash\xmlatt{#1}{id}'] = '#1'} \stopxmlsetups \startxmlsetups xml:footnote (2)\footnote{\xmlflush{\cldcontext{userdata.notes['\xmlatt{#1}{href}']}}} \stopxmlsetups \xmlprocessbuffer{main}{demo}{} \stoptext

Re: [NTG-context] handling HTML notes in ConTeXt

2014-12-28 Thread Pablo Rodriguez
variant 2: \blank \xmlflush{#1} \blank \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1} \stopxmlsetups \startluacode userdata.notes = {} \stopluacode \startxmlsetups xml:collectnotes \ctxlua{userdata.notes['\letterhash\xmlatt{#1}{id}'] = '#1

[NTG-context] MP \letterpercent

2013-01-27 Thread Procházka Lukáš
Hello, why the MP code doesn't draw % and # when it uses TeX's \U - inside MP block?: \def\T{TTT} \def\U{UUU \letterpercent\letterhash} \starttext \letterpercent \letterhash \par \startMPcode draw btex AAA etex; draw textext(\T); % draw btex \T etex; % Err draw

Re: [NTG-context] MP \letterpercent

2013-01-27 Thread Hans Hagen
On 1/27/2013 10:05 PM, Procházka Lukáš wrote: Hello, why the MP code doesn't draw % and # when it uses TeX's \U - inside MP block?: \def\T{TTT} \def\U{UUU \letterpercent\letterhash} \starttext \letterpercent \letterhash \par \startMPcode draw btex AAA etex; draw

Re: [NTG-context] xml cross-references in lua?

2012-09-12 Thread Thomas A. Schmitz
userdata = userdata or { } userdata.bibitems = { } \stopluacode \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:bibitem \ctxlua{userdata.bibitems[\letterhash\xmlatt{#1}{xml:id}] = #1} \stopxmlsetups \def\BibAuthor#1#2{[2:\xmlfirst{\cldcontext{userdata.bibitems['#2

Re: [NTG-context] xml cross-references in lua?

2012-09-11 Thread Hans Hagen
{xml:define} \xmlprocessbuffer{whatever}{demo}{} \startluacode userdata = userdata or { } userdata.bibitems = { } \stopluacode \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:bibitem \ctxlua{userdata.bibitems[\letterhash\xmlatt{#1}{xml:id}] = #1

Re: [NTG-context] Problem with Lua processing UTF8 substrings

2012-02-01 Thread Philipp Gesang
, utf.len(target) do context(utf.sub(target,i,i).., ) end \stopluacode% } %% alternatively, use utfcharacters \define[1]\myothermacro{% \startluacode local result = { } for i in string.utfcharacters[==[\detokenize{#1}]==] do result[\letterhash result+1] = i end

Re: [NTG-context] xml attribute conditional

2011-12-14 Thread Hans Hagen
\footnote[\letterhash\xmlatt{#1}{xml:id}]{\xmlflush{#1}}] % \stopxmlsetups % % \startxmlsetups xml:ref % [ref : \note[\xmlatt{#1}{target}] ] % \stopxmlsetups \startxmlsetups xml:div:c \stopxmlsetups \startxmlsetups xml:note \stopxmlsetups \startxmlsetups xml:ref \doifsomething{\xmlatt{#1

Re: [NTG-context] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-12-01 Thread Raymond LeClair
Thanks for the reply! Found I needed to use \letterbackslash\letterhash for this to work. Does that make sense? On Nov 30, 2011, at 10:37 AM, Aditya Mahajan wrote: Try: using \letterhash instead of \# or \startasciimode \def \FrontMatterTitle { \startreusableMPgraphic

Re: [NTG-context] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-11-30 Thread Aditya Mahajan
Try: using \letterhash instead of \# or \startasciimode \def \FrontMatterTitle { \startreusableMPgraphic{frontmattertitle:\overlaywidth:\overlayheight} matter_paper_width := 4.25in; matter_paper_height := 6.875in; front_left_margin := 0.3889in; top_margin

Re: [NTG-context] List of special characters

2011-08-15 Thread Wolfgang Schuster
\textbackslash\ or \letterbackslash \textbraceleft\ or \letterleftbrace\ or \{ \textbraceright\ or \letterrightbrace\ or \} \percent\ or \letterpercent\ or \% \textdollar\ or \letterdollar\ or \$ \letterampersand\ or \ \letterhash\ or \# \stoplines \asciimode % $ # %% this is a comment \stoptext

Re: [NTG-context] List of special characters

2011-08-15 Thread Cecil Westerhof
\startlines \textbackslash\ or \letterbackslash \textbraceleft\ or \letterleftbrace\ or \{ \textbraceright\ or \letterrightbrace\ or \} \percent\ or \letterpercent\ or \% \textdollar\ or \letterdollar\ or \$ \letterampersand\ or \ \letterhash\ or \# \stoplines \asciimode

Re: [NTG-context] Producing quotesingle glyph

2011-03-20 Thread Wolfgang Schuster
. { : \letteropenbrace, \letterbgroup, \letterleftbrace, \textbraceleft } : \letterclosebrace, \letteregroup, \letterrightbrace, \textbraceright : \letterampersand : \letterless : \lettermore # : \letterhash : \letterdoublequote, \quotedbl ' : \lettersinglequote, \quotesingle $ : \letterdollar

Re: [NTG-context] Escaping in LuaTeX

2011-01-02 Thread Wolfgang Schuster
? You can replace the # with \letterhash but you method is wrong, the first thing is that \luacode is already defined in the core and it can be used as replacement for \ctxlua and second it’s better to separate a lua function and the call to the function. Instead of writing the function

Re: [NTG-context] type problems

2009-08-09 Thread Wolfgang Werners-Lucchini
{\#}\mono{\letterhash} \startlines \mono{bla}blub \stoplines \stoptext What about \mono{Dies|Das}? Is'nt it frustrating? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] type problems

2009-08-06 Thread Wolfgang Schuster
{\letterpercent} \mono{\{}\mono{\letterleftbrace} % \mono{\{} works only with MkIV \mono{\#}\mono{\letterhash} \startlines \mono{bla}blub \stoplines \stoptext why is in the following example '#' -- '##'? why is there a newline between 'bla' and 'blub'? Has to do with the way how \retype works, a solution

Re: [NTG-context] Howto add a # sign to a \button URL?

2009-05-13 Thread Wolfgang Schuster
(which is the same I get when doing a \noexpand\foochar{}, where \foochar is \edefed as {\char 35}): Did \letterhash work? Wolfgang ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Howto add a # sign to a \button URL?

2009-05-13 Thread luigi scarso
throws an error: Did \letterhash work? Yes, thank you. I tried to figure out where \letterhash is defined, but couldn't find it out grepping through the sources. maybe in catc-sym.tex at line 27 ? .catcode `.# 12 .xdef .letterhashB.string#E -- luigi

Re: [NTG-context] modifying URL wrapping rules

2008-11-19 Thread Lars Huttar
'before' these characters for now). \sethyphenatedurlbefore \letterhash \sethyphenatedurlbefore \letterpercent \sethyphenatedurlbefore \letterampersand \sethyphenatedurlbefore , \sethyphenatedurlbefore - \sethyphenatedurlbefore . \sethyphenatedurlbefore = \sethyphenatedurlbefore ? \sethyphenatedurlbefore

Re: [NTG-context] Minimals - problems with format: metafun.mp

2008-11-05 Thread Taco Hoekwater
} \xmlmapvalue{fo:color}{#ff}{\colored[h=ff]} \setvalue{fo:color}#1{\expandafter\colored\expandafter[h=#1]} %\setvalue{fo:color}#1{\edef\temp{\noexpand\ctxlua{document.commands.somehexcolor(\letterhash\uppercase{#1})}}\temp} \catcode`\%=11 \xmlmapvalue{style:text-position}{sub 58%} {\def

Re: [NTG-context] Minimals - problems with format: metafun.mp

2008-11-03 Thread Johannes Graumann
{document.commands.somehexcolor(\letterhash\uppercase{#1})}}\temp} \catcode`\%=11 \xmlmapvalue{style:text-position}{sub 58%} {\def\leftofspan##1\rightofspan{\low {##1}}} \xmlmapvalue{style:text-position}{super 58%}{\def\leftofspan##1\rightofspan{\high{##1}}} \catcode`\%=14 \definetextbackground

Re: [NTG-context] XML

2008-10-29 Thread Wolfgang Schuster
,g=0.2,b=0.27] \WhatAMess ...ocument.commands.somehexcolor(#1)} l.16 {test \WhatAMess{\letterhash FF3344} test} ? That's why I went color ... Joh Wolfgang Schuster wrote: On Sun, Oct 26, 2008 at 3:05 PM, Johannes Graumann [EMAIL

Re: [NTG-context] XML

2008-10-27 Thread Johannes Graumann
! Undefined control sequence. l.1 \colored [r=1,g=0.2,b=0.27] \WhatAMess ...ocument.commands.somehexcolor(#1)} l.16 {test \WhatAMess{\letterhash FF3344} test} ? That's why I went color ... Joh Wolfgang Schuster wrote: On Sun

Re: [NTG-context] XML

2008-10-26 Thread Johannes Graumann
\stopluacode \setupcolors[state=start] \def\WhatAMess#1{\ctxlua{document.commands.somehexcolor(#1)}} {test \WhatAMess{\letterhash FF3344} test} \stoptext \starttext \startluacode document.commands = document.commands or { } function document.commands.somehexcolor(str

Re: [NTG-context] XML

2008-10-22 Thread Hans Hagen
)}} {test \WhatAMess{\letterhash FF3344} test} \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74

Re: [NTG-context] Macro with suffix

2007-06-23 Thread Aditya Mahajan
On Sun, 24 Jun 2007, nicola wrote: Hi, I have read http://thread.gmane.org/gmane.comp.tex.context/3540, but why does the following \appendtoks \let\#\hashletter \to \everyMPgraphic This was a typo. It should have been \letterhash. However, you do not need to explicitly do this, since supp

Re: [NTG-context] List of special characters?

2006-12-28 Thread Mojca Miklavec
On 12/28/06, [EMAIL PROTECTED] wrote: This works great. But then I've got the following keywords: # ! | \ @ ^ + - * / % Just copied from Aditya's code :) \letterhash, \# \letterexclamationmark \letterbar \letterbackslash \letterat \letterhat \letterslash \letterpercent, \% \letterless

Re: [NTG-context] List of special characters?

2006-12-28 Thread cormullion
On 2006-12-28, at 13:15.0, Mojca Miklavec wrote: On 12/28/06, [EMAIL PROTECTED] wrote: This works great. But then I've got the following keywords: # ! | \ @ ^ + - * / % Just copied from Aditya's code :) \letterhash, \# \letterexclamationmark \letterbar \letterbackslash \letterat

Re: [NTG-context] List of special characters?

2006-12-28 Thread Idris Samawi Hamid
On Thu, 28 Dec 2006 07:00:07 -0700, [EMAIL PROTECTED] wrote: Just copied from Aditya's code \letterhash, \# \letterexclamationmark \letterbar \letterbackslash \letterat \letterhat \letterslash \letterpercent, \% \letterless \lettermore \letterampersand, \ \letteropenbrace